# cmake needs this line
cmake_minimum_required(VERSION 3.10)
# Define project name
project(VtkDemo)

# compile features
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
# Enable C++14
# set(CMAKE_CXX_STANDARD 14)
# set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

# macros
add_definitions(-DUNICODE -D_UNICODE)

### moving subdirectory here to avoid other definiations
# Qt+VTK project
add_subdirectory(SimpleView)
# FourPaneViewer
add_subdirectory(FourPaneViewer)
#dicom
add_subdirectory(dicom)
# 基础图形
add_subdirectory(vtkgraph)

find_package(VTK REQUIRED)

include_directories(${ME_SOURCE_DIR}
    )


message("VtkDemo:======")
message("   vtk_mathdemo link lib: ${VTK_LIBRARIES}")

add_subdirectory(IO)
add_subdirectory(Core)
add_subdirectory(DataRpst)


## 0 basic vtk operation

ADD_EXECUTABLE(vtk_1_ClipDemo 1_ClipDemo.cpp)
TARGET_LINK_LIBRARIES(vtk_1_ClipDemo ${VTK_LIBRARIES})

ADD_EXECUTABLE(vtk_1_ClipClosedDemo 1_ClipClosedDemo.cpp)
TARGET_LINK_LIBRARIES(vtk_1_ClipClosedDemo ${VTK_LIBRARIES})

ADD_EXECUTABLE(vtk_1_01ClipFrustum 1_01ClipFrustum.cpp)
TARGET_LINK_LIBRARIES(vtk_1_01ClipFrustum ${VTK_LIBRARIES})

ADD_EXECUTABLE(vtk_2_StlClipDemo 2_StlClipDemo.cpp)
TARGET_LINK_LIBRARIES(vtk_2_StlClipDemo ${VTK_LIBRARIES})

ADD_EXECUTABLE(vtk_2_StlCutDemo 2_StlCutDemo.cpp)
TARGET_LINK_LIBRARIES(vtk_2_StlCutDemo ${VTK_LIBRARIES})

ADD_EXECUTABLE(vtk_3_PickDemo 3_PickDemo.cpp)
TARGET_LINK_LIBRARIES(vtk_3_PickDemo ${VTK_LIBRARIES})

ADD_EXECUTABLE(vtk_3_annotatepick 3_annotatepick.cpp)
TARGET_LINK_LIBRARIES(vtk_3_annotatepick ${VTK_LIBRARIES})

ADD_EXECUTABLE(vtk_3_PickPropDemo 3_PickPropDemo.cpp)
TARGET_LINK_LIBRARIES(vtk_3_PickPropDemo ${VTK_LIBRARIES})


